package hao.d01;

public class Perfect {
    public static void main(String[] args) {
      int i=1,k,j;
      while(i<100){
          j=i;
          k=1;
          while (k<=i/2){
              if ((i%k)==0)j-=k;
              k++;
          }
          if(j==0) System.out.println("1-100之间的完数有"+i);
          i++;
      }
    }
}
